package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 金蝶-检验单检验结果对象 erp_king_check_material_detail_info
 *
 * @author cxl
 * @date 2024-08-11
 */
@TableName ("erp_king_check_material_detail_info")
@ApiModel (value = "金蝶-检验单检验结果", description = "金蝶-检验单检验结果")
@Data
public class KingCheckMaterialDetailEntity {

    /** 主键id */
    @TableId (type = IdType.INPUT)
    private String id;

    /** 检验单id */
    @ApiModelProperty ("检验单id")
    @TableField ("check_id")
    @Excel (name = "检验单id")
    private String checkId;

    /** 检验单分录id */
    @ApiModelProperty ("检验单分录id")
    @TableField ("check_material_id")
    @Excel (name = "检验单分录id")
    private String checkMaterialId;

    /** 序号 */
    @ApiModelProperty ("序号")
    @TableField ("serial_num")
    @Excel (name = "序号")
    private String serialNum;

    /** 物料id */
    @ApiModelProperty ("物料id")
    @TableField ("material_id")
    @Excel (name = "物料id")
    private String materialId;

    /** 物料编码 */
    @ApiModelProperty ("物料编码")
    @TableField ("material_code")
    @Excel (name = "物料编码")
    private String materialCode;

    /** 物料名称 */
    @ApiModelProperty ("物料名称")
    @TableField ("material_name")
    @Excel (name = "物料名称")
    private String materialName;

    /** 规格型号 */
    @ApiModelProperty ("规格型号")
    @TableField ("material_model")
    @Excel (name = "规格型号")
    private String materialModel;

    /** 质检状态 */
    @ApiModelProperty ("质检状态")
    @TableField ("check_status")
    @Excel (name = "质检状态")
    private String checkStatus;

    /** 批号 */
    @ApiModelProperty ("批号")
    @TableField ("batch_num")
    @Excel (name = "批号")
    private String batchNum;

    /** 耗时 */
    @ApiModelProperty ("耗时")
    @TableField ("time_consuming")
    @Excel (name = "耗时")
    private String timeConsuming;

    /** 时间单位 */
    @ApiModelProperty ("时间单位")
    @TableField ("time_unit")
    @Excel (name = "时间单位")
    private String timeUnit;

    /** 样本破坏承担方 */
    @ApiModelProperty ("样本破坏承担方")
    @TableField ("sample_destruction_undertake")
    @Excel (name = "样本破坏承担方")
    private String sampleDestructionUndertake;

    /** 序列号单位 */
    @ApiModelProperty ("序列号单位")
    @TableField ("serial_num_unit")
    @Excel (name = "序列号单位")
    private String serialNumUnit;

    /** 检验数量 */
    @ApiModelProperty ("检验数量")
    @TableField ("check_num")
    @Excel (name = "检验数量")
    private String checkNum;

    /** 合格数量 */
    @ApiModelProperty ("合格数量")
    @TableField ("qualified_num")
    @Excel (name = "合格数量")
    private String qualifiedNum;

    /** 不合格数量 */
    @ApiModelProperty ("不合格数量")
    @TableField ("unqualified_num")
    @Excel (name = "不合格数量")
    private String unqualifiedNum;

    /** 检验结果 */
    @ApiModelProperty ("检验结果")
    @TableField ("check_result")
    @Excel (name = "检验结果")
    private String checkResult;

    /** 样本破坏数量 */
    @ApiModelProperty ("样本破坏数量")
    @TableField ("sample_destruction_num")
    @Excel (name = "样本破坏数量")
    private String sampleDestructionNum;

    /** 扫描序列号 */
    @ApiModelProperty ("扫描序列号")
    @TableField ("scan_serial_num")
    @Excel (name = "扫描序列号")
    private String scanSerialNum;

    /** 当前严格度 */
    @ApiModelProperty ("当前严格度")
    @TableField ("current_strictness")
    @Excel (name = "当前严格度")
    private String currentStrictness;

    /** 录入人 */
    @ApiModelProperty ("录入人")
    @TableField ("user_id")
    @Excel (name = "录入人")
    private String userId;

    /** 创建时间 */
    @ApiModelProperty ("创建时间")
    @TableField ("create_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    /** 更新时间 */
    @ApiModelProperty ("更新时间")
    @TableField ("change_time")
    @JsonFormat (pattern = "yyyy-MM-dd")
    @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /** 逻辑删除 */
    @ApiModelProperty ("逻辑删除")
    @TableField ("is_used")
    @Excel (name = "逻辑删除")
    @TableLogic
    private Integer isUsed;

}
